package cn.tlb.xutilsdownload.db;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

/**
 * Created by 汤林冰 on 2015/11/27 14:07.
 */
@Table(name = "child")
public class Child {

    @Column(name = "id", isId = true)
    public int id;

    @Column(name = "name")
    public String name;

    @Column(name = "age")
    public int age;

    @Column(name = "birthday")
    public MyDate birthday;

    public Child() {
    }

    public Child(String name, int age, String birthday) {
        this.name = name;
        this.age = age;
        this.birthday = new MyDate(birthday);
    }

    @Override
    public String toString() {
        return "Child{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", birthday=" + birthday +
                '}';
    }
}
